From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:40:38 +0000 (-0600) Subject: fix tidy modernize-use-nullptr X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2^2~57^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e5f9ad2645e8560cb0265d5d2525184556b34e53;p=gpsbabel.git fix tidy modernize-use-nullptr --- diff --git a/main.cc b/main.cc index 9e62fde52..2060ef768 100644 --- a/main.cc +++ b/main.cc @@ -747,7 +747,7 @@ main(int argc, char* argv[]) #endif if constexpr (DEBUG_LOCALE) { - printf("Initial locale: %s\n",setlocale(LC_ALL, NULL)); + printf("Initial locale: %s\n",setlocale(LC_ALL, nullptr)); } // Create a QCoreApplication object to handle application initialization. @@ -764,7 +764,7 @@ main(int argc, char* argv[]) // as opposed to the initial default "C" locale. // This was demonstrated with Qt5 on Mac OS X. if constexpr (DEBUG_LOCALE) { - printf("Locale after initial setup: %s\n",setlocale(LC_ALL, NULL)); + printf("Locale after initial setup: %s\n",setlocale(LC_ALL, nullptr)); } // As recommended in QCoreApplication reset the locale to the default. // Note the documentation says to set LC_NUMERIC, but QCoreApplicationPrivate::initLocale() @@ -776,7 +776,7 @@ main(int argc, char* argv[]) } setlocale(LC_NUMERIC,"C"); if constexpr (DEBUG_LOCALE) { - printf("LC_ALL: %s\n",setlocale(LC_ALL, NULL)); + printf("LC_ALL: %s\n",setlocale(LC_ALL, nullptr)); } } /* reset LC_TIME for strftime */ @@ -786,7 +786,7 @@ main(int argc, char* argv[]) } setlocale(LC_TIME,"C"); if constexpr (DEBUG_LOCALE) { - printf("LC_ALL: %s\n",setlocale(LC_ALL, NULL)); + printf("LC_ALL: %s\n",setlocale(LC_ALL, nullptr)); } } qInstallMessageHandler(MessageHandler);